/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.insurance.cis.utils;

import javax.swing.JPanel;
import org.netbeans.lib.awtextra.AbsoluteConstraints;

/**
 *
 * @author TruongLQ
 */
public final class JPanelLoader {
    
    public static void loadJpanel(JPanel target, JPanel jPanel) {
        target.removeAll();
        jPanel.setVisible(false);
        target.add(jPanel, 
                new AbsoluteConstraints(0,0,target.getWidth(),target.getHeight()));//, new AbsoluteConstraints(0,0,target.getWidth(),target.getHeight()));
        jPanel.setVisible(true);
    }
}
